package com.hrpmar.pojo;

/**
 * Created by c on 2017-12-04.
 */
public class MessageReceiver {

    private Integer rid;        //收信id
    private Integer mid;        //引用发信表编号
    private String woJubnum;       //收信人编号
    private Integer isReaded;   //是否已读 0:未读 1:已读
    private Integer isDeleted;  //是否删除 0:未删除 1:已删除

    private MessageSender messageSender;    //发信人对象
    private Worker worker;      //工作人员对象

    public MessageSender getMessageSender() {
        return messageSender;
    }

    public void setMessageSender(MessageSender messageSender) {
        this.messageSender = messageSender;
    }

    public Worker getWorker() {
        return worker;
    }

    public void setWorker(Worker worker) {
        this.worker = worker;
    }

    public Integer getRid() {
        return rid;
    }

    public void setRid(Integer rid) {
        this.rid = rid;
    }

    public Integer getMid() {
        return mid;
    }

    public void setMid(Integer mid) {
        this.mid = mid;
    }

    public String getWoJubnum() {
        return woJubnum;
    }

    public void setWoJubnum(String woJubnum) {
        this.woJubnum = woJubnum;
    }

    public Integer getIsReaded() {
        return isReaded;
    }

    public void setIsReaded(Integer isReaded) {
        this.isReaded = isReaded;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    @Override
    public String toString() {
        return "MessageReceiver{" +
                "rid=" + rid +
                ", mid=" + mid +
                ", woJubnum='" + woJubnum + '\'' +
                ", isReaded=" + isReaded +
                ", isDeleted=" + isDeleted +
                ", messageSender=" + messageSender +
                ", worker=" + worker +
                '}';
    }
}
